package com.talentgame.tankspk.GameNet.DTO;

/**
 * Created by 54560 on 2016/12/28.
 */
public class PlayerModel {
    public int playerid;
    //生命值
    public int Hp;
    //是否死亡
    public int state;
    //坐标
    public float x=0, y=0,z=0;
    public boolean isMove;
    //坦克的方向
    public float tdx=0, tdy=0, tdz=0;
    public boolean isRotation;
    public float ldx=0, ldy=0, ldz=0;
    public boolean isLook;
//是否开枪了
    public boolean isShot;
    public PlayerModel() {
    }

    //望向的方向
    public PlayerModel(int playerid,int hp, int state, float x, float y, float z, float tdx, float tdy, float tdz, float ldx, float ldy, float ldz) {
        this.playerid = playerid;
        Hp = hp;
        this.state = state;
        this.x = x;
        this.y = y;
        this.z = z;
        this.tdx = tdx;
        this.tdy = tdy;
        this.tdz = tdz;
        this.ldx = ldx;
        this.ldy = ldy;
        this.ldz = ldz;
    }

    public void Set(float x, float y, float z, float tdx, float tdy, float tdz, float ldx, float ldy, float ldz)
    {
        this.x = x;
        this.y = y;
        this.z = z;
        this.tdx = tdx;
        this.tdy = tdy;
        this.tdz = tdz;
        this.ldx = ldx;
        this.ldy = ldy;
        this.ldz = ldz;
    }
}
